import { HashRouter, Route, Routes, BrowserRouter } from "react-router-dom";
import { Login } from "./pages/login/login";
import { LayoutPage } from "./layout/layout";

/**
 * 根路由组件
 */
export function Router() {
  return (
    <BrowserRouter>
      <Routes>
        {/* 第一层路由 */}
        <Route path="/login" element={<Login />} />
        <Route path="/*" element={<LayoutPage />} />
      </Routes>
    </BrowserRouter>
  );
}
